
package com.mu.rai.services;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for processTargetControl complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="processTargetControl">
 *   &lt;complexContent>
 *     &lt;extension base="{http://services.rai.mu.com}targetControl">
 *       &lt;sequence>
 *         &lt;choice>
 *           &lt;element name="console_channel" type="{http://services.rai.mu.com}consoleChannel"/>
 *           &lt;element name="ssh_channel" type="{http://services.rai.mu.com}sshChannel"/>
 *           &lt;element name="telnet_channel" type="{http://services.rai.mu.com}telnetChannel"/>
 *         &lt;/choice>
 *         &lt;element name="command" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="fault_patterns" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="fault_pattern" type="{http://services.rai.mu.com}regex" maxOccurs="unbounded"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="setup" type="{http://services.rai.mu.com}timedCommand" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "processTargetControl", propOrder = {
    "consoleChannel",
    "sshChannel",
    "telnetChannel",
    "command",
    "faultPatterns",
    "setup"
})
public class ProcessTargetControl
    extends TargetControl
{

    @XmlElement(name = "console_channel")
    protected ConsoleChannel consoleChannel;
    @XmlElement(name = "ssh_channel")
    protected SshChannel sshChannel;
    @XmlElement(name = "telnet_channel")
    protected TelnetChannel telnetChannel;
    @XmlElement(required = true)
    protected String command;
    @XmlElement(name = "fault_patterns")
    protected ProcessTargetControl.FaultPatterns faultPatterns;
    protected TimedCommand setup;

    /**
     * Gets the value of the consoleChannel property.
     * 
     * @return
     *     possible object is
     *     {@link ConsoleChannel }
     *     
     */
    public ConsoleChannel getConsoleChannel() {
        return consoleChannel;
    }

    /**
     * Sets the value of the consoleChannel property.
     * 
     * @param value
     *     allowed object is
     *     {@link ConsoleChannel }
     *     
     */
    public void setConsoleChannel(ConsoleChannel value) {
        this.consoleChannel = value;
    }

    /**
     * Gets the value of the sshChannel property.
     * 
     * @return
     *     possible object is
     *     {@link SshChannel }
     *     
     */
    public SshChannel getSshChannel() {
        return sshChannel;
    }

    /**
     * Sets the value of the sshChannel property.
     * 
     * @param value
     *     allowed object is
     *     {@link SshChannel }
     *     
     */
    public void setSshChannel(SshChannel value) {
        this.sshChannel = value;
    }

    /**
     * Gets the value of the telnetChannel property.
     * 
     * @return
     *     possible object is
     *     {@link TelnetChannel }
     *     
     */
    public TelnetChannel getTelnetChannel() {
        return telnetChannel;
    }

    /**
     * Sets the value of the telnetChannel property.
     * 
     * @param value
     *     allowed object is
     *     {@link TelnetChannel }
     *     
     */
    public void setTelnetChannel(TelnetChannel value) {
        this.telnetChannel = value;
    }

    /**
     * Gets the value of the command property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCommand() {
        return command;
    }

    /**
     * Sets the value of the command property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCommand(String value) {
        this.command = value;
    }

    /**
     * Gets the value of the faultPatterns property.
     * 
     * @return
     *     possible object is
     *     {@link ProcessTargetControl.FaultPatterns }
     *     
     */
    public ProcessTargetControl.FaultPatterns getFaultPatterns() {
        return faultPatterns;
    }

    /**
     * Sets the value of the faultPatterns property.
     * 
     * @param value
     *     allowed object is
     *     {@link ProcessTargetControl.FaultPatterns }
     *     
     */
    public void setFaultPatterns(ProcessTargetControl.FaultPatterns value) {
        this.faultPatterns = value;
    }

    /**
     * Gets the value of the setup property.
     * 
     * @return
     *     possible object is
     *     {@link TimedCommand }
     *     
     */
    public TimedCommand getSetup() {
        return setup;
    }

    /**
     * Sets the value of the setup property.
     * 
     * @param value
     *     allowed object is
     *     {@link TimedCommand }
     *     
     */
    public void setSetup(TimedCommand value) {
        this.setup = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="fault_pattern" type="{http://services.rai.mu.com}regex" maxOccurs="unbounded"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "faultPattern"
    })
    public static class FaultPatterns {

        @XmlElement(name = "fault_pattern", required = true)
        protected List<String> faultPattern;

        /**
         * Gets the value of the faultPattern property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the faultPattern property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getFaultPattern().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link String }
         * 
         * 
         */
        public List<String> getFaultPattern() {
            if (faultPattern == null) {
                faultPattern = new ArrayList<String>();
            }
            return this.faultPattern;
        }

    }

}
